package cn.wolfcode.cms.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Setter
@Getter
public class Recharge {
    private Long id;//
    //会员卡号
    private Long card_num;//
    //操作类型(充值 扣费)
    private Long op_id;
    //支付类型
    private Long pay_id;
    //原余额
    private BigDecimal oldbalance;
    //充值金额
    private BigDecimal addmoney;
    //充值金额
    private BigDecimal submoney;
    //赠送金额
    private BigDecimal givemoney;
    //新余额
    private BigDecimal newbalance;
    //充值时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date rechargetime;
    private String rechargeinfo;

}